package com.cnunicom.modules.tra.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cnunicom.common.utils.PageUtils;
import com.cnunicom.common.utils.Query;

import com.cnunicom.modules.tra.dao.ResDiscountDao;
import com.cnunicom.modules.tra.entity.ResDiscountEntity;
import com.cnunicom.modules.tra.service.ResDiscountService;


@Service("resDiscountService")
public class ResDiscountServiceImpl extends ServiceImpl<ResDiscountDao, ResDiscountEntity> implements ResDiscountService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ResDiscountEntity> page = this.page(
                new Query<ResDiscountEntity>().getPage(params),
                new QueryWrapper<ResDiscountEntity>()
        );

        return new PageUtils(page);
    }

}